<?php

namespace Acme\DemoBundle\Entity;

use Doctrine\ORM\Mapping as ORM;

/**
 * Nhanvienthuongd2
 *
 * @ORM\Table(name="nhanvienthuongd2")
 * @ORM\Entity
 */
class Nhanvienthuongd2
{
    /**
     * @var integer
     *
     * @ORM\Column(name="id", type="bigint", nullable=false)
     * @ORM\Id
     * @ORM\GeneratedValue(strategy="IDENTITY")
     */
    private $id;

    /**
     * @var integer
     *
     * @ORM\Column(name="tienthuong", type="bigint", nullable=true)
     */
    private $tienthuong;

    /**
     * @var float
     *
     * @ORM\Column(name="hesod2", type="float", nullable=true)
     */
    private $hesod2;

    /**
     * @var float
     *
     * @ORM\Column(name="hesothidua", type="float", nullable=true)
     */
    private $hesothidua;

    /**
     * @var integer
     *
     * @ORM\Column(name="thangcongtac", type="integer", nullable=true)
     */
    private $thangcongtac;

    /**
     * @var float
     *
     * @ORM\Column(name="hesothuong", type="float", nullable=true)
     */
    private $hesothuong;

    /**
     * @var \DateTime
     *
     * @ORM\Column(name="created", type="datetime", nullable=true)
     */
    private $created;

    /**
     * @var \DateTime
     *
     * @ORM\Column(name="updated", type="datetime", nullable=true)
     */
    private $updated;

    /**
     * @var \DateTime
     *
     * @ORM\Column(name="deleted", type="datetime", nullable=true)
     */
    private $deleted;

    /**
     * @var \Nhanvien
     *
     * @ORM\ManyToOne(targetEntity="Nhanvien")
     * @ORM\JoinColumns({
     *   @ORM\JoinColumn(name="nhanvienid", referencedColumnName="id")
     * })
     */
    private $nhanvienid;

    /**
     * @var \Thuongd2
     *
     * @ORM\ManyToOne(targetEntity="Thuongd2")
     * @ORM\JoinColumns({
     *   @ORM\JoinColumn(name="thuongd2id", referencedColumnName="id")
     * })
     */
    private $thuongd2id;



    /**
     * Get id
     *
     * @return integer 
     */
    public function getId()
    {
        return $this->id;
    }

    /**
     * Set tienthuong
     *
     * @param integer $tienthuong
     * @return Nhanvienthuongd2
     */
    public function setTienthuong($tienthuong)
    {
        $this->tienthuong = $tienthuong;
    
        return $this;
    }

    /**
     * Get tienthuong
     *
     * @return integer 
     */
    public function getTienthuong()
    {
        return $this->tienthuong;
    }

    /**
     * Set hesod2
     *
     * @param float $hesod2
     * @return Nhanvienthuongd2
     */
    public function setHesod2($hesod2)
    {
        $this->hesod2 = $hesod2;
    
        return $this;
    }

    /**
     * Get hesod2
     *
     * @return float 
     */
    public function getHesod2()
    {
        return $this->hesod2;
    }

    /**
     * Set hesothidua
     *
     * @param float $hesothidua
     * @return Nhanvienthuongd2
     */
    public function setHesothidua($hesothidua)
    {
        $this->hesothidua = $hesothidua;
    
        return $this;
    }

    /**
     * Get hesothidua
     *
     * @return float 
     */
    public function getHesothidua()
    {
        return $this->hesothidua;
    }

    /**
     * Set thangcongtac
     *
     * @param integer $thangcongtac
     * @return Nhanvienthuongd2
     */
    public function setThangcongtac($thangcongtac)
    {
        $this->thangcongtac = $thangcongtac;
    
        return $this;
    }

    /**
     * Get thangcongtac
     *
     * @return integer 
     */
    public function getThangcongtac()
    {
        return $this->thangcongtac;
    }

    /**
     * Set hesothuong
     *
     * @param float $hesothuong
     * @return Nhanvienthuongd2
     */
    public function setHesothuong($hesothuong)
    {
        $this->hesothuong = $hesothuong;
    
        return $this;
    }

    /**
     * Get hesothuong
     *
     * @return float 
     */
    public function getHesothuong()
    {
        return $this->hesothuong;
    }

    /**
     * Set created
     *
     * @param \DateTime $created
     * @return Nhanvienthuongd2
     */
    public function setCreated($created)
    {
        $this->created = $created;
    
        return $this;
    }

    /**
     * Get created
     *
     * @return \DateTime 
     */
    public function getCreated()
    {
        return $this->created;
    }

    /**
     * Set updated
     *
     * @param \DateTime $updated
     * @return Nhanvienthuongd2
     */
    public function setUpdated($updated)
    {
        $this->updated = $updated;
    
        return $this;
    }

    /**
     * Get updated
     *
     * @return \DateTime 
     */
    public function getUpdated()
    {
        return $this->updated;
    }

    /**
     * Set deleted
     *
     * @param \DateTime $deleted
     * @return Nhanvienthuongd2
     */
    public function setDeleted($deleted)
    {
        $this->deleted = $deleted;
    
        return $this;
    }

    /**
     * Get deleted
     *
     * @return \DateTime 
     */
    public function getDeleted()
    {
        return $this->deleted;
    }

    /**
     * Set nhanvienid
     *
     * @param \Acme\DemoBundle\Entity\Nhanvien $nhanvienid
     * @return Nhanvienthuongd2
     */
    public function setNhanvienid(\Acme\DemoBundle\Entity\Nhanvien $nhanvienid = null)
    {
        $this->nhanvienid = $nhanvienid;
    
        return $this;
    }

    /**
     * Get nhanvienid
     *
     * @return \Acme\DemoBundle\Entity\Nhanvien 
     */
    public function getNhanvienid()
    {
        return $this->nhanvienid;
    }

    /**
     * Set thuongd2id
     *
     * @param \Acme\DemoBundle\Entity\Thuongd2 $thuongd2id
     * @return Nhanvienthuongd2
     */
    public function setThuongd2id(\Acme\DemoBundle\Entity\Thuongd2 $thuongd2id = null)
    {
        $this->thuongd2id = $thuongd2id;
    
        return $this;
    }

    /**
     * Get thuongd2id
     *
     * @return \Acme\DemoBundle\Entity\Thuongd2 
     */
    public function getThuongd2id()
    {
        return $this->thuongd2id;
    }
}